<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head lang="en">
    <meta charset="utf-8"/>
    <title>个人信息</title>
    <link th:href="@{/project/css/public.css}" rel="stylesheet"/>
    <link th:href="@{/project/css/mygrxx.css}" rel="stylesheet"/>
    <link th:href="@{/project/css/ry-ui.css}" rel="stylesheet"/>
</head>
<body>
<style>
    .pt{
        padding-top: 7px;
    }
</style>
<!------------------------------head------------------------------>
<div class="head ding" th:include="include::normal_headDiv2"></div>
<!------------------------------idea------------------------------>
<div class="address mt">
    <div class="wrapper clearfix">
        <a th:href="@{/index}" class="fl">首页</a>
        <span>/</span>
        <a class="on">个人信息</a>
    </div>
</div>

<!------------------------------Bott------------------------------>
<div class="Bott">
    <div class="wrapper clearfix">
        <div class="zuo fl" th:include="include::normal_left_menu"></div>
        <div class="you fl">
            <div class="gxin">
                <div class="xx">
                    <h3 class="clearfix">
                        <strong class="fl">基础资料</strong>
<!--                        <a href="javascript:void(0);" class="fr" id="edit3">密保设置</a>-->
                        <a href="javascript:void(0);" class="fr" id="edit2">修改密码</a>
                        <a href="javascript:void(0);" class="fr" id="edit1">编辑</a>
                    </h3>
                    <div>账号：<span th:text="${session.currentUser.loginName}"></span></div>
                    <div>姓名：<span th:text="${session.currentUser.userName}"></span></div>
                    <div>性别：<span th:text="${session.currentUser.sex}" id="userSex"></span></div>
                    <div>手机：<span th:text="${session.currentUser.phonenumber}"></span></div>
                    <div>邮箱：<span th:text="${session.currentUser.email}"></span></div>
                    <div>上次登录：<span th:text="${session.currentUser.loginDate}"></span></div>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="footer" th:include="include::normal_footerDiv"></div>
<div th:include="include::footer_normal"></div>
<script th:src="@{/project/cart.js}"></script>
<script th:inline="javascript">
    var datas = [[${@dict.getType('sys_user_sex')}]];
    $("#sex").val($("#userSex").html());
    $("#userSex").html($($.table.selectDictLabel(datas, $("#userSex").html())).html());

    $("#edit1").click(function () {
        $.modal.open("修改个人信息", ctx+'system/user/updateSelf', '800', '450');
    });
    $("#edit2").click(function () {
        var url = ctx + 'system/user/updatePwd';
        $.modal.open("重置密码", url, '800', '400');
    });
    $("#edit3").click(function () {
        $.modal.open("密保设置", ctx+'system/user/updateSecret', '800', '400');
    });

</script>
</body>
</html>
